package insight.google.game.era.data;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * JDO class for Game Result Entity.
 * @author MMC
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class GameResult {
	/**
	 * 
	 */

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String resultID;
	
//	@Persistent
//	private Date startDate;
//		
//	@Persistent
//	private Date endDate;
//	
//	@Persistent
//	private int roundNumber;
//	
//	@Persistent
//	private String gameOwnerID;
	
//	@Persistent
//	private List<Participant> participantList;
	
	@Persistent
	private List<String> winnerIDs;
	
	@Persistent
	private String winnerRole;

	/**
	 * @return the resultID
	 */
	public String getResultID() {
		return resultID;
	}

	/**
	 * @param resultID the resultID to set
	 */
	public void setResultID(String resultID) {
		this.resultID = resultID;
	}

//	/**
//	 * @return the startDate
//	 */
//	public Date getStartDate() {
//		return startDate;
//	}
//
//	/**
//	 * @param startDate the startDate to set
//	 */
//	public void setStartDate(Date startDate) {
//		this.startDate = startDate;
//	}
//
//	/**
//	 * @return the endDate
//	 */
//	public Date getEndDate() {
//		return endDate;
//	}
//
//	/**
//	 * @param endDate the endDate to set
//	 */
//	public void setEndDate(Date endDate) {
//		this.endDate = endDate;
//	}
//
//	/**
//	 * @return the roundNumber
//	 */
//	public int getRoundNumber() {
//		return roundNumber;
//	}
//
//	/**
//	 * @param roundNumber the roundNumber to set
//	 */
//	public void setRoundNumber(int roundNumber) {
//		this.roundNumber = roundNumber;
//	}
//
//	/**
//	 * @return the gameOwnerID
//	 */
//	public String getGameOwnerID() {
//		return gameOwnerID;
//	}
//
//	/**
//	 * @param gameOwnerID the gameOwnerID to set
//	 */
//	public void setGameOwnerID(String gameOwnerID) {
//		this.gameOwnerID = gameOwnerID;
//	}
//
//	/**
//	 * @return the participantList
//	 */
//	public List<Participant> getParticipantList() {
//		return participantList;
//	}
//
//	/**
//	 * @param participantList the participantList to set
//	 */
//	public void setParticipantList(List<Participant> participantList) {
//		this.participantList = participantList;
//	}

	/**
	 * @return the winnerIDs
	 */
	public List<String> getWinnerIDs() {
		return winnerIDs;
	}

	/**
	 * @param winnerIDs the winnerIDs to set
	 */
	public void setWinnerIDs(List<String> winnerIDs) {
		this.winnerIDs = winnerIDs;
	}

	/**
	 * @return the winnerRole
	 */
	public String getWinnerRole() {
		return winnerRole;
	}

	/**
	 * @param winnerRole the winnerRole to set
	 */
	public void setWinnerRole(String winnerRole) {
		this.winnerRole = winnerRole;
	}
}
